package Creational.Prototype.prototypeManager.student;

public class Student implements Cloneable
{
    String name;
    int age;
    PubInfo info;//公共信息，一般公共信息是克隆的

    public PubInfo getInfo()
    {
        return info;
    }
    public void setInfo(PubInfo info)
    {
        this.info = info;
    }

    public String getName()
    {
        return name;
    }
    public int getAge()
    {
        return age;
    }
    public void setName(String name)
    {
        this.name = name;
    }
    public void setAge(int age)
    {
        this.age = age;
    }
    @Override
    public Object clone() throws CloneNotSupportedException
    {
        return super.clone();
    }
}
